package com.ojoin.trade.common_core.web.dao;

import com.ojoin.trade.common.exception.BusinessException;
import com.ojoin.trade.common.web.dao.BaseDao;
import com.ojoin.trade.common_core.web.domain.TbMerchantuserFinaccount;
import com.ojoin.trade.common_core.web.domain.TbMerchantuserFinaccountVo;

import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * Created with IntelliJ IDEA.
 * User: Administrator
 * Date: 15-10-22
 * Time: 上午11:16
 * To change this template use File | Settings | File Templates.
 */

public interface TbMerchantuserFinaccountDao extends BaseDao<TbMerchantuserFinaccount> {

    public void insertTbMerchantuserFinaccount(TbMerchantuserFinaccount tbMerchantuserFinaccount)throws BusinessException;

    public List<TbMerchantuserFinaccount> queryFinaccountByJoinid(Integer idOfTbMerchantUser,Integer businessType)throws BusinessException;

    public List<TbMerchantuserFinaccountVo> queryFinaccountByType(int businessType,String accountType)throws BusinessException;

    public TbMerchantuserFinaccount queryFinaccount(Integer idOfTbMerchantUser,Integer businessType,String acccountType )throws BusinessException;

    public List<TbMerchantuserFinaccount> queryFinaccountByJoinidAndAcctype(Integer idOfTbMerchantUser,String acccountType)throws BusinessException;
}
